﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AF1 RID: 2801
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Material0 : IMessage<Material0>, IMessage, IEquatable<Material0>, IDeepCloneable<Material0>, IBufferMessage
	{
		// Token: 0x1700235B RID: 9051
		// (get) Token: 0x06007D60 RID: 32096 RVA: 0x0014E918 File Offset: 0x0014CB18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Material0> Parser
		{
			get
			{
				return Material0._parser;
			}
		}

		// Token: 0x1700235C RID: 9052
		// (get) Token: 0x06007D61 RID: 32097 RVA: 0x0014E91F File Offset: 0x0014CB1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return Material0Reflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700235D RID: 9053
		// (get) Token: 0x06007D62 RID: 32098 RVA: 0x0014E931 File Offset: 0x0014CB31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Material0.Descriptor;
			}
		}

		// Token: 0x06007D63 RID: 32099 RVA: 0x0014E938 File Offset: 0x0014CB38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Material0()
		{
		}

		// Token: 0x06007D64 RID: 32100 RVA: 0x0014E940 File Offset: 0x0014CB40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Material0(Material0 other) : this()
		{
			this.num_ = other.num_;
			this.expireTime_ = other.expireTime_;
			this.tid_ = other.tid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007D65 RID: 32101 RVA: 0x0014E97D File Offset: 0x0014CB7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Material0 Clone()
		{
			return new Material0(this);
		}

		// Token: 0x1700235E RID: 9054
		// (get) Token: 0x06007D66 RID: 32102 RVA: 0x0014E985 File Offset: 0x0014CB85
		// (set) Token: 0x06007D67 RID: 32103 RVA: 0x0014E98D File Offset: 0x0014CB8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Num
		{
			get
			{
				return this.num_;
			}
			set
			{
				this.num_ = value;
			}
		}

		// Token: 0x1700235F RID: 9055
		// (get) Token: 0x06007D68 RID: 32104 RVA: 0x0014E996 File Offset: 0x0014CB96
		// (set) Token: 0x06007D69 RID: 32105 RVA: 0x0014E99E File Offset: 0x0014CB9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong ExpireTime
		{
			get
			{
				return this.expireTime_;
			}
			set
			{
				this.expireTime_ = value;
			}
		}

		// Token: 0x17002360 RID: 9056
		// (get) Token: 0x06007D6A RID: 32106 RVA: 0x0014E9A7 File Offset: 0x0014CBA7
		// (set) Token: 0x06007D6B RID: 32107 RVA: 0x0014E9AF File Offset: 0x0014CBAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Tid
		{
			get
			{
				return this.tid_;
			}
			set
			{
				this.tid_ = value;
			}
		}

		// Token: 0x06007D6C RID: 32108 RVA: 0x0014E9B8 File Offset: 0x0014CBB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Material0);
		}

		// Token: 0x06007D6D RID: 32109 RVA: 0x0014E9C8 File Offset: 0x0014CBC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Material0 other)
		{
			return other != null && (other == this || (this.Num == other.Num && this.ExpireTime == other.ExpireTime && this.Tid == other.Tid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007D6E RID: 32110 RVA: 0x0014EA24 File Offset: 0x0014CC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Num != 0U)
			{
				num ^= this.Num.GetHashCode();
			}
			if (this.ExpireTime != 0UL)
			{
				num ^= this.ExpireTime.GetHashCode();
			}
			if (this.Tid != 0U)
			{
				num ^= this.Tid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007D6F RID: 32111 RVA: 0x0014EA95 File Offset: 0x0014CC95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007D70 RID: 32112 RVA: 0x0014EA9D File Offset: 0x0014CC9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007D71 RID: 32113 RVA: 0x0014EAA8 File Offset: 0x0014CCA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Tid != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Tid);
			}
			if (this.Num != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Num);
			}
			if (this.ExpireTime != 0UL)
			{
				output.WriteRawTag(112);
				output.WriteUInt64(this.ExpireTime);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007D72 RID: 32114 RVA: 0x0014EB20 File Offset: 0x0014CD20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Num != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Num);
			}
			if (this.ExpireTime != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.ExpireTime);
			}
			if (this.Tid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Tid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007D73 RID: 32115 RVA: 0x0014EB90 File Offset: 0x0014CD90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Material0 other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Num != 0U)
			{
				this.Num = other.Num;
			}
			if (other.ExpireTime != 0UL)
			{
				this.ExpireTime = other.ExpireTime;
			}
			if (other.Tid != 0U)
			{
				this.Tid = other.Tid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007D74 RID: 32116 RVA: 0x0014EBF4 File Offset: 0x0014CDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007D75 RID: 32117 RVA: 0x0014EC00 File Offset: 0x0014CE00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 72U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ExpireTime = input.ReadUInt64();
						}
					}
					else
					{
						this.Num = input.ReadUInt32();
					}
				}
				else
				{
					this.Tid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002FE3 RID: 12259
		private static readonly MessageParser<Material0> _parser = new MessageParser<Material0>(() => new Material0());

		// Token: 0x04002FE4 RID: 12260
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002FE5 RID: 12261
		public const int NumFieldNumber = 9;

		// Token: 0x04002FE6 RID: 12262
		private uint num_;

		// Token: 0x04002FE7 RID: 12263
		public const int ExpireTimeFieldNumber = 14;

		// Token: 0x04002FE8 RID: 12264
		private ulong expireTime_;

		// Token: 0x04002FE9 RID: 12265
		public const int TidFieldNumber = 3;

		// Token: 0x04002FEA RID: 12266
		private uint tid_;
	}
}
